﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhp.Entity.SysEnum;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Chat
{
    [SugarTable("Chat_Content")]
    public class ChatContent : BaseEntity<ChatContent, long>
    {
        /// <summary>
        /// 互为好友共用ID,用作查询聊天记录
        /// </summary>
        [SugarColumn(ColumnDataType = "bigint", IsNullable = false, ColumnDescription = "互为好友共用ID,用作查询聊天记录")]
        public long PairID { get; set; }

        /// <summary>
        /// 消息类型
        /// </summary>
        [SugarColumn(ColumnDataType = "int", IsNullable = false, ColumnDescription = "消息类型")]
        public MessageTypeEnum MessageType { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        [SugarColumn(ColumnDataType = "nvarchar", Length = 600, IsNullable = false, ColumnDescription = "消息内容")]
        public string Content { get; set; }
    }
}
